/**
 * 清空表单
 */
export default function resetForm(formRef: any, obj: any) {
  Object.keys(obj).forEach(key => {
    obj[key] = ''
  })
  // 清楚表单的验证
  if (formRef) {
    formRef.resetFields()
    formRef.clearValidate()
  }
}